var app = getApp();

Component({
        properties: {
                textOne: {
                        type: String
                },
                inMenuItemData: {
                        type: Array
                }
        },

        data: {
                baseUrl: app.globalData.baseUrl,
                inSelectRightMenuId: 0,

                topTabData: [],
                selectTabId: '',

                selectCandidateId: "",
                candidateDataList: [],
                frameAnimation: null,
                boxAnimation: null
        },

        attached() {
                this.animation = jd.createAnimation();
        },

        methods: {
                startFrameAni() {
                        // frame ani
                        var tempFrameAnimation = jd.createAnimation({
                                duration: 1000,
                                timingFunction: 'cubic-bezier(0,0.14,1,0.18)',
                                delay: 0
                        });
                        tempFrameAnimation.opacity(1.0).translate(0, -800).step()
                        this.setData({
                                frameAnimation: tempFrameAnimation.export()
                        })
                        // end ani

                        // box ani
                        var tempBoxAnimation = jd.createAnimation({
                                duration: 500,
                                timingFunction: 'cubic-bezier(0,0.14,1,0.18)',
                                delay: 300
                        });
                        tempBoxAnimation.opacity(1.0).translate(0, -800).step()
                        this.setData({
                                boxAnimation: tempBoxAnimation.export()
                        })
                        // end ani
                },

                animationEndFun() {
                        console.log("animationEndFun --- animationEndFun")
                        this.triggerEvent("onIndexAniEnd", {});
                }
        },
})